package com.ekgc.addressbook.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ekgc.addressbook.common.Contacts;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;


public interface ContactService {

        IPage<Contacts> queryContacts(int pageNo, int pageSize, String keyword,String phoneNumber,int groupid);

        boolean addContact(Contacts contacts ,int UserId);

        boolean deleteContact(String phoneNumber,int userId);

        boolean updateContact(Contacts contacts);

        void updateContactGroup(Integer contactId, Integer newGroupId);

        int importContacts(Integer userId, MultipartFile file) throws IOException;

}